<template>
    <div class="recommend">
        <div class="recommend-item" v-for="(item,index) in recommends" :key="index">
            <a :href="item.link">
                <img :src="item.image" alt="">
                <p>{{item.title}}</p>
            </a>
        </div>
    </div>
</template>

<script>
  export default {
    name: "RecommendView",
    props:{
      recommends:{
        type: Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style scoped>
    .recommend {
        display: flex;
        margin-top: 10px;
        font-size: 16px;
        padding-bottom: 10px;
        border-bottom: 6px solid #eee;
    }

    .recommend-item {
        flex: 1;
        text-align: center;
    }

    .recommend img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
</style>